package com.sun.common.core.model.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.sun.common.core.excel.BaseExcel;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
public class UserExcel extends BaseExcel implements Serializable {

    private static final long serialVersionUID = 5305104994147833731L;

    @Size(max = 10, min = 2, message = "用户名称不规范")
    @ExcelProperty(value = "名称")
    private String userName;
}
